/**
 * 通道表 api 封装
 *
 * @Author:    zzb
 * @Date:      2025-01-23 04:08:26
 */
import { postRequest, getRequest } from '/@/lib/axios'

export const channelApi = {
  /**
   * 分页查询  @author  zzb
   */
  queryPage: (param) => {
    return postRequest('/b-agent/channel/page', param)
  },
  /**
   * 分页查询代理商通道  @author  zzb
   */
  pageAgent: (param) => {
    return postRequest('/b-agent/channel/page_agent', param)
  },
  /**
   * 增加  @author  zzb
   */
  add: (param) => {
    return postRequest('/b-agent/channel/insert', param)
  },

  /**
   * 修改  @author  zzb
   */
  update: (param) => {
    return postRequest('/b-agent/channel/update', param)
  },

  /**
   * 修改  @author  zzb
   */
  updateStatus: (param) => {
    return postRequest('/b-agent/channel/update_status', param)
  },

  findOne: (param) => {
    return postRequest('/b-agent/channel/find_id', param)
  },
}
